<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="http://durogestic.239489.com/assets/bootstrap3.3.5/css/bootstrap.css" rel="stylesheet">
    <link href="/assets/css/bootstrap-datetimepicker.min.css" rel="stylesheet" />
    <script src="http://durogestic.239489.com/assets/js/jquery.min.js"></script>
    <script src="http://durogestic.239489.com/assets/js/browser.js"></script>
    <script src="http://durogestic.239489.com/assets/bootstrap3.3.5/js/bootstrap.js"></script>
    <link href="http://durogestic.239489.com/assets/css/custom.css" rel="stylesheet">


<title>后台首页</title>

</head>
<body>
<div class="navbar navbar-default">
    <div class="container">
        <div class="navbar-header">
            <button data-target=".navbar-collapse" data-toggle="collapse" type="button" class="navbar-toggle collapsed">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand hidden-sm">杨森多瑞吉管理后台</a>
        </div>
    </div>
    <div style="float:right;font-size:14px;">admin,欢迎您！<a href="/adm/logout">退出</a>&nbsp;&nbsp;&nbsp;</div>
</div>
<div class="container-fluid">
    <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
            <div class="accordion" id="accordion-11">
                <div class="accordion-group">
                    <div class="accordion-heading">
                        <a class="accordion-toggle" href="/adm">
                            首页
                        </a>
                    </div>
                </div>
                <div class="accordion-group">
                    <div class="accordion-heading">
                        <a class="accordion-toggle" href="/adm/user">
                            用户管理
                        </a>
                    </div>
                </div>
                <div class="accordion-group">
                    <div class="accordion-heading">
                        <a class="accordion-toggle" href="/adm/expert">
                            专家管理
                        </a>
                    </div>
                </div>
                <div class="accordion-group">
                    <div class="accordion-heading">
                        <a class="accordion-toggle" href="/adm/video">
                            直播/录播管理
                        </a>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main" >
            <div class="col-md-12" id="content" >
                <div class="app_content_div" id="app_content_div_301Index">
    <h3>视频列表</h3>
</div>

                <div>
                    <div style="float:right;">
                        <a type="button" class="btn btn-primary" href="video/create">新增</a>
                    </div>
                </div>
<table class="table table-striped">
    <thead>
    <tr>
        <th>id</th>
        <th>标题</th>
        <th>专家</th>
        <th>类型</th>
        <th>图片</th>
        <th>视频</th>
        <th>简介</th>
        <th>直播开始时间</th>
        <th>直播结束时间</th>
        <th>操作</th>
        <th></th>
    </tr>
    </thead>
    <tbody>
    @foreach($videos as $v)
        <tr>
    <td>{{$v->id}}</td>
    <td>{{$v->name}}</td>
    <td>{{$v->expert_id}}</td>
            @if($v->type==1)
                <td>直播</td>
            @endif
            @if($v->type==0)
                <td>录播</td>
            @endif
    <td>{{$v->image}}</td>
    <td>{{$v->video}}</td>
    <td>{{$v->info}}</td>
    <td>{{$v->start_at}}</td>
    <td>{{$v->end_at}}</td>
    <td>

        <form action="/video/{{$v->id}}" method="post">
            @csrf
            @method('DELETE')
            <button type="submit" class="btn-danger">删除</button>
        </form>
    </td>

    @endforeach

</body>
</html>
